package com.wct.struct;

import javolution.io.Struct;
import javolution.io.Struct.Unsigned32;

public class SyscfgPacket2 extends Struct {
	public final Unsigned8 	StartId = new Unsigned8();//0x5f
	public final Unsigned8 	CmdType = new Unsigned8();//0:命令,1:app数据(android/ios/html),2:短信数据,3:微信数据
	public final Unsigned8 	Cmd = new Unsigned8();//0:登录,1:data:,2:keepalive,3:gps err,4:撤销
	public final Unsigned8	DataLen = new Unsigned8();//对于固定长度的结构可以不用填写
	public SysCfg Data = inner(new SysCfg());
//	unsigned int	LinkId;//0:服务器,1:设备
	public final Unsigned32 DeviceSN = new Unsigned32();
	public final Unsigned8 EndId = new Unsigned8();//0x01	
	@Override
	public boolean isPacked() {
        return true; // MyStruct is packed.
    }
}
